// out: ../css/index.css
@import './base.less';
@viewBaseWidth: 3.75;

.index {
    width: 100%;
    min-height: 100vh;
    background-color: #f9fafb;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

// 搜索框效果
.search {
    margin-top: (60vw/@viewBaseWidth);
    width: (343vw/@viewBaseWidth);
    height: (32vw/@viewBaseWidth);
    background-color: #f2f4f5;
    border-radius: (16vw/@viewBaseWidth);
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;

    .txt {
        font-size: (14vw/@viewBaseWidth);
        color: #a1a4b3;
    }

    .icon-sousuo {
        font-size: (16vw/@viewBaseWidth);
    }

    span.txt {
        width: (128vw/@viewBaseWidth);
    }
}

// banner效果
.banner {
    position: relative;
    margin: (10vw/@viewBaseWidth) 0px;
    width: 100vw;
    height: (108vw/@viewBaseWidth);
    overflow: hidden;

    .bannerList {
        animation: slide 7s ease infinite;
        width: 400vw;
        display: flex;

        li {
            width: (342.5vw/@viewBaseWidth);
            height: (108vw/@viewBaseWidth);
            margin: 0 auto;

            a,
            img {
                width: 100%;
                height: 100%;
            }

            img {
                border-radius: (7vw/@viewBaseWidth);
                object-fit: cover;
            }
        }

        @keyframes slide {
            0% {
                transform: translate(-0vw);
            }

            33% {
                transform: translate(-100vw);
            }

            66% {
                transform: translate(-200vw);
            }

            100% {
                transform: translate(-300vw);
            }
        }
    }

    ol {
        position: absolute;
        left: 50%;
        bottom: (10vw/@viewBaseWidth);
        transform: translateX(-50%);
        display: flex;

        li {
            margin: 0 (2vw/@viewBaseWidth);
            width: (5vw/@viewBaseWidth);
            height: (5vw/@viewBaseWidth);
            background-color: #fff;
            opacity: .4;
            border-radius: (2.5vw/@viewBaseWidth);
        }

        li.active {
            opacity: .8;
        }
    }
}

// title类通用效果
.title {
    margin: auto;
    margin-bottom: (13vw/@viewBaseWidth);
    // padding-left: (23vw/@viewBaseWidth);
    // padding-right: (24vw/@viewBaseWidth);
    width:(343.5vw/@viewBaseWidth);
    height: (28vw/@viewBaseWidth);
    display: flex;
    justify-content: space-between;
    align-items: center;

    h2 {
        color: #262338;
        font-size: (20vw/@viewBaseWidth);
    }

    .more {
        display: flex;
        align-items: center;
        color: #a1a4b3;

        span {
            font-size: (12vw/@viewBaseWidth);
        }

        .icon-right {
            font-size: (16vw/@viewBaseWidth);
        }
    }
}

// content类通用效果
.content {
    img {
        width: (105vw/@viewBaseWidth);
        height: (105vw/@viewBaseWidth);
        border-radius: (16vw/@viewBaseWidth);
    }

    .cover {
        position: relative;

        &>img {
            width: (105vw/@viewBaseWidth);
            height: (105vw/@viewBaseWidth);
            border-radius: (16vw/@viewBaseWidth);
        }

        .playInfo {
            position: absolute;
            left: 0;
            bottom: 0;
            display: flex;
            justify-content: center;
            align-items: center;
            width: fit-content;
            height: (28.5vw/@viewBaseWidth);
            background-color: rgba(0, 0, 0, .3);
            border-top-right-radius: (16vw/@viewBaseWidth);
            border-bottom-left-radius: (16vw/@viewBaseWidth);

            img {
                margin-left: (13vw/@viewBaseWidth);
                width: (9vw/@viewBaseWidth);
                height: (12vw/@viewBaseWidth);
                border-radius: 0;
            }

            span {
                margin-left: (6vw/@viewBaseWidth);
                margin-right: (13vw/@viewBaseWidth);
                font-size: (13vw/@viewBaseWidth);
                color: #fff;
                font-weight: 700;
                line-height: normal;
            }
        }
    }

    p {
        margin-top: (10vw/@viewBaseWidth);
        width: (105vw/@viewBaseWidth);
        font-size: (14vw/@viewBaseWidth);
        color: #262338;
    }
}

// 排行榜效果
.rankList {
    .content {
        li {
            margin: 0px (15.5vw/@viewBaseWidth) (15.5vw/@viewBaseWidth) (16vw/@viewBaseWidth);
            width: (343vw/@viewBaseWidth);
            height: (105vw/@viewBaseWidth);
            background-color: #fff;
            border-radius: (16vw/@viewBaseWidth);

            a {
                width: 100%;
                height: 100%;
                display: flex;
            }

            dl {
                margin-left: (21vw/@viewBaseWidth);
                padding: (13.5vw/@viewBaseWidth) 0;

                dt {
                    margin-bottom: (6vw/@viewBaseWidth);
                    display: flex;
                    align-items: center;
                    font-size: (14vw/@viewBaseWidth);
                    color: #262338;
                }

                dd {
                    margin-bottom: (3.5vw/@viewBaseWidth);
                    font-size: (11vw/@viewBaseWidth);
                    color: #a1a4b3;
                }
            }
        }
    }
}

// 推荐歌单效果
.recommend {
    margin-top: (25vw/@viewBaseWidth);

    .title {
        margin-bottom: 0;
    }

    .content {
        ul {
            display: flex;
            width: (375vw/@viewBaseWidth);
            height: (346vw/@viewBaseWidth);
            justify-content: space-evenly;
            align-content: space-evenly;
            flex-wrap: wrap;
        }
    }
}

// 听书区域效果
.recommBook {
    margin-top: (7vw/@viewBaseWidth);

    .content {
        ul {
            display: flex;
            width: (375vw/@viewBaseWidth);
            height: (188vw/@viewBaseWidth);
            justify-content: space-evenly;
        }

        a>span {
            font-size: (11vw/@viewBaseWidth);
            color: #a1a4b3;
        }
    }
}

// 版权区域效果
.footer {
    margin-top: (40vw/@viewBaseWidth);
    margin-bottom: (107.5vw/@viewBaseWidth);
    width: 100vw;
    height: (87vw/@viewBaseWidth);
    display: flex;
    flex-direction: column;
    align-items: center;

    .sign {
        display: flex;
        align-items: center;

        img {
            width: (22vw/@viewBaseWidth);
            height: (23.5vw/@viewBaseWidth);
        }

        p {
            margin-left: (6vw/@viewBaseWidth);
            font-size: (14vw/@viewBaseWidth);
        }
    }

    .agreement,
    .version,
    .intro {
        display: flex;
        align-items: center;
        font-size: (11vw/@viewBaseWidth);
        color: #a1a4b3;
        line-height: (18vw/@viewBaseWidth);
    }

    .agreement {
        margin-top: (9.5vw/@viewBaseWidth);
    }
}

//上方广告区域效果
.top {
    position: fixed;
    left: 0;
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100vw;
    height: (50vw/@viewBaseWidth);
    background-color: #fff;
    box-shadow: 0px (15vw/@viewBaseWidth) (13.5vw/@viewBaseWidth) (-19vw/@viewBaseWidth) rgba(211, 220, 236, 0.77);

    .imghead {
        width: (235.5vw/@viewBaseWidth);
        height: 100%;
        background: url(../assets/head.png) no-repeat left /contain;
    }

    .right {
        margin-right: (15vw/@viewBaseWidth);
        width: (87.5vw/@viewBaseWidth);
        height: (30vw/@viewBaseWidth);
        background-color: #ffe31b;
        border-radius: (15vw/@viewBaseWidth);
        display: flex;
        justify-content: center;
        align-items: center;

        span {
            font-size: (13vw/@viewBaseWidth);
            color: rgba(0, 0, 0, .8);
        }

        .icon-down {
            font-size: (11.5vw/@viewBaseWidth);
            margin-left: (5vw/@viewBaseWidth);
        }
    }
}

// 下方广告区域效果
.bottom {
    padding-left: (18vw/@viewBaseWidth);
    padding-right: (9vw/@viewBaseWidth);
    position: fixed;
    bottom: (30vw/@viewBaseWidth);
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: (320vw/@viewBaseWidth);
    height: (45vw/@viewBaseWidth);
    border-radius: (22.5vw/@viewBaseWidth);
    background-color: #fff;
    box-shadow: (1vw/@viewBaseWidth) 0 (20.5vw/@viewBaseWidth) (1vw/@viewBaseWidth) rgba(232, 235, 241, .73);

    .adv {
        display: flex;
        align-items: center;

        img {
            width: (37vw/@viewBaseWidth);
            height: (37vw/@viewBaseWidth);
        }

        span {
            margin-left: (5vw/@viewBaseWidth);
            font-size: (14vw/@viewBaseWidth);
            font-weight: 700;
        }
    }

    .moreIcon {
        display: flex;
        justify-content: center;
        align-items: center;
        width: (27vw/@viewBaseWidth);
        height: (27vw/@viewBaseWidth);
        border-radius: (13.5vw/@viewBaseWidth);
        background-color: #F7F7F7;

        .icon-right {
            color: #333333;
            font-size: (16vw/@viewBaseWidth);
            font-weight: 700;
        }
    }
}